//  this library.
/// 有效期状态
enum AssetStatusEnum {
  effective(desc: "有效", code: 1),
  invalid(desc: "无效", code: 2),
  overdue(desc: "已过期", code: 3),
  ;

  final String desc;

  final int code;

  const AssetStatusEnum({
    required this.desc,
    required this.code,
  });

  static AssetStatusEnum? getTypeEnum(String type) {
    var values = AssetStatusEnum.values;
    for (var value in values) {
      if (value.name == type) {
        return value;
      }
    }
    return null;
  }
}
